import request from '@/utils/request'

export function addLeader(data) {
    return request({
        url: '/warningOrderLeader/save.do',
        method: 'post',
        // headers: {
        //     'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'      //改这里就好了
        // },
        data,
    })
}


export function deleteOne(data) {
    return request({
        url: '/warningOrderLeader/deleteOne.do',
        method: 'post',
        data,
    })
}


export function getOneOrderList(data) {
    return request({
        url: '/warningOrderLeader/getOneOrderList.do',
        method: 'post',
        data,
    })
}

//通知信息
export function getDeptList() {
    return request({
        url: '/warningOrderLeader/getDeptList.do',
        method: 'post',
    })
}

//上报领导循环信息
export function getLeaderList() {
    return request({
        url: '/warningOrderLeader/getLeaderList.do',
        method: 'post',
    })
}

//领导阅读
export function readLeader(data) {
    return request({
        url: '/warningOrderLeader/readLeader.do?id='+data,
        method: 'post',
    })
}